package com.jwdemo
{
	import flash.external.ExternalInterface;

	public class Logger
	{
		static public var debug:Boolean = true ;
		
		public function Logger()
		{
		}
		
		public static function log(message:String): void
		{
			if (debug) {
				ExternalInterface.call( "console.log" , message);
			}
		}
	}
}